<?php
include "../function.php";
include "../include/admin.class.php";
$pro=new Product();
$shop = new Shop();
$admin = new Admin();
$admin->limit(1);

$order = $shop->getOrdersByAction('confirm');
//var_dump($order);
if(isset($_POST['submit'])){
	$data = array('complete_time' => date('Y-m-d H:i:s',time()),"complete_user" => $_SESSION['login_admin'],'status' => 4);
	$shop->adminUpdateOrder($data,'orders_id',$_POST['orders_id']);
}
?>